﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Collections.Generic;


namespace Authority.Entity
{
    //菜单模块表
    [DataContract]
    [Table("Base_Modules")]
    public class Modules : DoNet.FrameWork.DomainModel.Entity
    {
        [DataMember]
        public string Code { get; set; }

        [DataMember]
        public Guid ParentId { get; set; }

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public string NavigateUrl { get; set; }

        public bool IsMenu { get; set; }

        public string Icon { get; set; }
        
        public virtual List<Controls> Controls { get; set; }
    }
}